package com.vouov.apps.mapper;

import com.vouov.apps.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * User: yuminglong
 * Date: 11-12-1
 * Time: 下午9:34
 * Version: 1.0.0
 */
public interface UserMapper {
    User getUserById(long userId);
    void insertUser(User user);
    void updateUser(User user);
    void deleteUser( User user);
    List<User> queryUsers(@Param("userName") String userName,@Param("sex") int sex,
                          @Param("limitStart")int limitStart, @Param("limit")int  limit);
    int queryUsersCount(@Param("userName") String userName,@Param("sex") int sex);
}
